<article class="module width_full">
	<header>
		<h3 class="tabs_involved">换货申请列表</h3>
	</header>

	<table class="tablesorter" cellspacing="0">
		<colgroup>
			<col width="160px" />
			<col width="160px" />
			<col />
			<col width="110px" />
			<col width="90px" />
		</colgroup>

		<thead>
			<tr>
				<th>订单号</th>
				<th>申请时间</th>
				<th>商品名称</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
			{set:$queryObj=Api::run('getExchangeList');$resultData=$queryObj->find()}
            {foreach:items=$resultData}
			<tr>
				<td>{$item['order_no']}</td>
				<td>{$item['time']}</td>
				<td>
                    {foreach:items=Api::run('getOrderGoodsRowById',array('id'=>$item["order_goods_id"])) item=$itemGoods}
					{set:$goods = JSON::decode($itemGoods['goods_array'])}
					<p><a href="{url:/site/products/id/$itemGoods['goods_id']}" target="_blank">{$goods['name']} X {$itemGoods['goods_nums']}</a></p>
					{/foreach}
				</td>
				<td>{echo:Order_Class::refundmentText($item['status'])}</th>
				<td><a href="{url:/seller/exchange_show/id/$item['id']}"><img class="operator" src="{skin:images/main/icn_settings.png}" title="查看" /></a></td>
			</tr>
			{/foreach}
		</tbody>
	</table>
    {$queryObj->getPageBar()}
</article>